package com.physique.tea.Pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("USERS")
public class User {
    @TableId(type = IdType.INPUT) // 达梦建议使用INPUT
    private String USERNAME;

    private String PASSWORD;
    private String LOCAL;

    private String SEX;

    @TableField(exist = false)
    private List<Order> ORDERS; // 非数据库字段
}